package cn.zhouchao.org.mapper;

import cn.zhouchao.basic.mapper.BaseMapper;
import cn.zhouchao.org.domain.Employee;

public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee findEmpByName(String username);

    Employee findByEmail(String email);

    Employee findByPhone(String phone);

    Employee findByLogininfoId(Long id);
//    //查询所有
//    List<Employee> findAll();
//    //查询单个
//    Employee findById(Long id);
//    //添加方法
//    void add(Employee employee);
//    //修改方法
//    void update(Employee employee);
//    //删除方法
//    void delete(Long id);
//    //分页查询
//    List<Employee> queryByPage(EmployeeQuery employeeQuery);
//    //查询页数
//    Integer queryByCount(EmployeeQuery employeeQuery);
//    //批量删除
//    void batchDelete(List<Long> ids);
}
